cmake_minimum_required(VERSION 3.15)
project(AnimalSystem)

# 设置C++标准
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 设置库输出目录
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)

# 包含目录
include_directories(include)

# 查找依赖库
find_package(Threads REQUIRED)

# 编译 animal_engine
add_executable(animal_engine src/animal_engine/animal_engine.cpp)
target_link_libraries(animal_engine)


# 添加子目录
# add_subdirectory(src/simple_version)
add_subdirectory(src/ptr_version)
# add_subdirectory(src/factory_version)
